VolumePath displays a modified Standard File dialog to let the user choose a volume. It returns the full path name of the chosen volume, or empty if the CANCEL button is chosen.
The dialog window is centered in the HyperCard window, regardless of which monitor it is on. In addition to the standard Eject, Drive, Select, and Cancel buttons, the XFCN displays the amount of free space on a volume.
As with all of our XCMDs and XFCNs, passing a single question mark (VolumeName("?") in this case) returns the syntax for the external. Passing two question marks (VolumeName("??")) or a single exclamation mark (VolumeName("!")) returns the copyright information.
-- part contents for background part 38
----- text -----
50/50
-- part contents for background part 42
----- text -----
{ VolumeName() XFCN source listing}
{ This is an XFCN that brings up a custom standard file dialog to allow the user to select a volume.}
{ This source file is part of a stack containing all necessary source code and compiled versions of}
{ this XFCN as well as 2 other standard file XFCN's. Send requests for the stack to the applelink}
{ addresses below.}
{}
{ This XFCN is not to be sold commercially or included within any commercial product}
{ without specific authorization from the authors and Apple Computer, Inc.}
{}
{ Written by: Anup Murarka Eric Carlson }
{ ALINK: SKEPTIC ALINK: cyNic }
{ CIS: 76004,3356 }
{}
{ We are part of the Support Tools Development Group, }
{ Apple Computer, Inc. }
{}
{ please DO NOT contack Mac DTS for support of this code! }
{}
{ please DO contact the authors for support of this code! }
{}
{ Send comments, bug reports, requests to any of the above }
{ E-mail addresses or to:}
{}
{ (one of us) }
{ Apple Computer, Inc. }
{ 900 E. Hamilton, Ave. }
{ Campbell, CA 95008 }
{ M/S 72-L }
{}
{ Copyright: © 1989, 1990 by Apple Computer, Inc., all rights reserved. }